import { BasicColumn } from '@/components/Table';
import { FormSchema } from '@/components/Table';

export const columns: BasicColumn[] = [
  {
    title: '导出url',
    align: 'center',
    dataIndex: 'secUrl',
  },
  {
    title: '导出名称',
    align: 'center',
    dataIndex: 'secName',
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'secUrl',
    label: '导出url',
    component: 'Input',
  },
  {
    field: 'secName',
    label: '导出名称',
    component: 'Input',
  },
];

export const formSchema: FormSchema[] = [
  {
    field: 'id',
    label: '',
    component: 'Input',
    show: false,
  },
  {
    field: 'secUrl',
    label: '导出url',
    component: 'Input',
    required: true,
  },
  {
    field: 'secName',
    label: '导出名称',
    component: 'Input',
    required: true,
  },
  {
    field: 'details',
    label: '导出字段配置',
    component: 'InputTextArea',
  },
];
